import Vue from 'vue'
import Router from 'vue-router'
import DashLayout from './components/DashLayout'
import Home from './views/home/Index'
import Login from './views/Login'
import NotFound from './views/NotFound'

import TaskIndex from './views/tasks/Index'
import TaskNew from './views/tasks/New'
import TaskEdit from './views/tasks/Edit'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: '/',
  routes: [
    { path: '/sign_in', name: 'Login',component: Login},
    {
      path: '/',
      component: DashLayout,
      children: [
        { path: '', name: 'Home', component: Home},
        { path: '/Part1-1', name: 'Part1-1', component: NotFound},
        { path: '/Part1-2', name: 'Part1-2', component: NotFound},
        { path: '/Part1-3', name: 'Part1-3', component: NotFound},
        { path: '/Part1-4', name: 'Part1-4', component: NotFound},
        { path: '/Part1-5', name: 'Part1-5', component: NotFound},
        { path: '/Part1-6', name: 'Part1-6', component: NotFound},
        { path: '/Part1-7', name: 'Part1-7', component: NotFound},
        { path: '/Part2-1', name: 'Part2-1', component: NotFound},
        { path: '/Part2-2', name: 'Part2-2', component: NotFound},
        { path: '/Part2-3', name: 'Part2-3', component: NotFound},
        { path: '/Part2-4', name: 'Part2-4', component: NotFound},
        { path: '/Part2-5', name: 'Part2-5', component: NotFound},
        { path: '/Part2-6', name: 'Part2-6', component: NotFound},
        { path: '/Part2-7', name: 'Part2-7', component: NotFound},
        { path: '/tasks', name: 'Tasks', component: TaskIndex},
        { path: '/tasks/new', name: 'TaskNew', component: TaskNew},
        { path: '/tasks/:id/edit', name: 'TaskEdit',component: TaskEdit},
        { path: '/Part3-2', name: 'Part3-2', component: NotFound},
        { path: '/Part3-3', name: 'Part3-3', component: NotFound},
        { path: '/Part3-4', name: 'Part3-4', component: NotFound},
        { path: '/Part3-5', name: 'Part3-5', component: NotFound},
        { path: '/Part3-6', name: 'Part3-6', component: NotFound},
        { path: '/Part3-7', name: 'Part3-7', component: NotFound},
        { path: '/Part4-1', name: 'Part4-1', component: NotFound},
        { path: '/Part4-2', name: 'Part4-2', component: NotFound},
        { path: '/Part4-3', name: 'Part4-3', component: NotFound},
        { path: '/Part4-4', name: 'Part4-4', component: NotFound},
        { path: '/Part4-5', name: 'Part4-5', component: NotFound},
        { path: '/Part4-6', name: 'Part4-6', component: NotFound},
        { path: '/Part4-7', name: 'Part4-7', component: NotFound},
        { path: '/Part5-1', name: 'Part5-1', component: NotFound},
        { path: '/Part5-2', name: 'Part5-2', component: NotFound},
        { path: '/Part5-3', name: 'Part5-3', component: NotFound},
      ]
    }
  ]
})
